package de.koller.planet2D.rcom;

import de.koller.aframe.util.thread.ICommand;
import de.koller.planet2D.PNode;

public class RemovePNode implements ICommand {
	
	private final PNode toRemove;

	public RemovePNode( PNode toRemove ) {
		this.toRemove = toRemove;
	}

	@Override
	public void handle( Object... params ) {
		toRemove.removeMe();
		toRemove.proot.updateThis();
	}
	
}
